﻿using UnityEngine;

namespace Zero.Dialogue
{
    public class BubbleCharacter : MonoBehaviour
    {
        [Tooltip("角色名")]
        public string characterName;
        [Tooltip("角色名的轮廓颜色")]
        public Color outlineColor = Color.black;
        [Tooltip("气泡位置偏移")]
        public Vector3 bubbleOffset = Vector3.up;

        /// <summary>
        /// 显示气泡
        /// </summary>
        /// <param name="body">主体内容</param>
        public void ShowBubble(string body)
        {
            DialogueSystem.Instance.ShowBubble(this, body);
        }
    }
}